﻿using AutoMapper;
using B.S.AuthCenter.Api.Write.Application.Command.Approval;
using B.S.AuthCenter.Api.Write.Application.Command.Menu;
using B.S.AuthCenter.Api.Write.Application.Command.Roles;
using B.S.AuthCenter.Api.Write.Application.Command.Users;
using B.S.AuthCenter.Domain;
using B.S.AuthCenter.Domain.Form;

namespace B.S.AuthCenter.Api.Write
{
    public class MyMapper : Profile
    {
        public  MyMapper()
        {
            CreateMap<AddUsersCommand,UserModel>().ReverseMap();
            CreateMap<UpdateUsersCommand, UserModel>().ReverseMap();
            CreateMap<DelUsersCommand, UserModel>().ReverseMap();


            CreateMap<AddRoleCommand, RoleModel>().ReverseMap();
            CreateMap<UpdateRoleCommand, RoleModel>().ReverseMap();


            CreateMap<AddMenuCommand, MenuManageModel>().ReverseMap();
            CreateMap<UpdateMenuCommand, MenuManageModel>().ReverseMap();

            CreateMap<AddAppFormCommand, AppFormModel>().ReverseMap();
            CreateMap<UpdateAppFormCommand, AppFormModel>().ReverseMap();
            CreateMap<UpdateStateCommand, AppFormModel>().ReverseMap();
        }
    }
}
